<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="OrcasThemes">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <title>视频点播系统-个人中心</title>
    <!-- 引入 Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- 引入 Font Awesome 图标库 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
    <!-- 自定义样式 -->
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #4e4e4e;
            color: #333;
            margin: 0;
            padding: 0;
        }

        /* 导航栏样式 */
       .navbar {
            background-color: #2c3e50;
            color: white;
            padding: 10px 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

       .search-block {
            background-color: white;
            border-radius: 20px;
            padding: 5px 10px;
            margin-right: 20px;
            display: flex;
            align-items: center;
        }

       .search-block input[type="search"] {
            border: none;
            outline: none;
            width: 200px;
            margin-left: 10px;
        }

       .search-block .fa-search {
            color: #7f8c8d;
        }

        /* 个人中心内容样式 */
        #personal-main {
            padding: 40px;
        }

        #personal-main h2.icon {
            color: #3498db; /* 修改为蓝色 */
            font-size: 32px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

       .video-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-gap: 30px;
        }

       .video-card {
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
        }

       .video-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
        }

       .video-thumb {
            position: relative;
            overflow: hidden;
        }

       .video-thumb img {
            width: 100%;
            height: auto;
            transition: transform 0.3s ease;
        }

       .video-thumb:hover img {
            transform: scale(1.1);
        }

       .video-thumb .play-btn {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 60px;
            opacity: 0;
            transition: opacity 0.3s ease;
            background-color: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            padding: 15px;
        }

       .video-thumb:hover .play-btn {
            opacity: 1;
        }

       .video-info {
            padding: 20px;
        }

       .video-info h4 a {
            color: #333;
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 18px;
        }

       .video-info h4 a:hover {
            color: #3498db;
        }

        /* 分割线样式 */
       .separator {
            border-top: 2px solid #3498db;
            margin: 40px 0;
        }

        /* 集合标题样式 */
        #personal-main h3.icon {
            color: white;
            font-weight: bold;
            font-size: 24px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        /* 修改按钮样式 */
       .subscribe-btn {
            background-color: #3498db;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            font-size: 16px;
        }

       .subscribe-btn:hover {
            background-color: #2980b9;
        }

        [v-cloak] {
            display: none;
        }
    </style>
</head>

<body>
    <div id="myapp">
        <!-- 导航栏 -->
        <nav class="navbar navbar-expand-lg">
            <div class="container-fluid">
                <a href="list.html" class="btn subscribe-btn">返回视频列表</a>
            </div>
        </nav>

        <!-- 个人中心内容 -->
        <section id="personal-main">
            <h2 class="icon"><i class="fa fa-user" aria-hidden="true"></i>个人中心</h2>

            <!-- 个人点赞集合 -->
            <h3 class="icon"><i class="fa fa-thumbs-up" aria-hidden="true"></i>个人点赞集合</h3>
            <div class="video-grid">
                <article class="video-card" v-for="likedVideo in likedVideos" v-cloak>
                    <div class="video-thumb">
                        <a class="afterglow post-thumb" :href="`/video.html?id=${likedVideo.id}`" target="_blank">
                            <span class="play-btn" title="Play"><i class="fa fa-play-circle headline-round"
                                    aria-hidden="true"></i></span>
                            <img class="img-fluid" :src="likedVideo.image" alt="#">
                        </a>
                    </div>
                    <div class="video-info">
                        <h4>
                            <a class="title" href="#">{{likedVideo.name}}</a>
                        </h4>
                    </div>
                </article>
            </div>

            <!-- 分割线 -->
            <div class="separator"></div>

            <!-- 个人收藏集合 -->
            <h3 class="icon"><i class="fa fa-bookmark" aria-hidden="true"></i>个人收藏集合</h3>
            <div class="video-grid">
                <article class="video-card" v-for="collectedVideo in collectedVideos" v-cloak>
                    <div class="video-thumb">
                        <a class="afterglow post-thumb" :href="`/video.html?id=${collectedVideo.id}`" target="_blank">
                            <span class="play-btn" title="Play"><i class="fa fa-play-circle headline-round"
                                    aria-hidden="true"></i></span>
                            <img class="img-fluid" :src="collectedVideo.image" alt="#">
                        </a>
                    </div>
                    <div class="video-info">
                        <h4>
                            <a class="title" href="#">{{collectedVideo.name}}</a>
                        </h4>
                    </div>
                </article>
            </div>
        </section>
    </div>

    <!-- 引入 jQuery -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <!-- 引入 Bootstrap JavaScript -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <!-- 引入 Vue.js -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        let app = new Vue({
            el: '#myapp',
            data: {
                likedVideos: [
                    { id: 1, name: '视频1', image: 'https://via.placeholder.com/300' },
                    { id: 2, name: '视频2', image: 'https://via.placeholder.com/300' },
                    { id: 3, name: '视频3', image: 'https://via.placeholder.com/300' }
                ],
                collectedVideos: [
                    { id: 4, name: '视频4', image: 'https://via.placeholder.com/300' },
                    { id: 5, name: '视频5', image: 'https://via.placeholder.com/300' },
                    { id: 6, name: '视频6', image: 'https://via.placeholder.com/300' }
                ]
            }
        });
    </script>
</body>

</html>